package com.shenhf.app;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.shenhf.about.About;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        RecyclerView recyclerView= (RecyclerView) findViewById(R.id.recycler_view);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        About about=new About.Builder()
                .info(getResources().getDrawable(R.mipmap.ic_launcher),"测试程序","V2.1.0","Error:(19, 17) 错误: 无法将类 Builder中的方法 info应用到给定类型;\n" +
                        "需要: Drawable,CharSequence,CharSequence,CharSequence\n" +
                        "找到: Drawable,String,String\n" +
                        "原因: 实际参数列表和形式参数列表长度不同")
                .official("http://www.baidu.com")
                .email("923178373@qq.com")
                .phone("12345678910")
//                .tos("测试")
                .tosUrl("http://www.baidu.com")
                .build();
        about.setupRecyclerView(recyclerView);
    }
}
